<tagLib name="html" />
<include file="Public:header" />
	<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
	  <div style="float:left;"><a href="{YICMS::U('Index/stat')}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;导航管理&nbsp;&raquo;&nbsp;<a href="{YICMS::U('Nav/add')}" style="color:red;font-weight:bold;">添加新导航</a></div>
	</div>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;">
		<tr class="header" align="center">
			<td width="25%">导航名称</td>
			<td  width="25%" class="center">链接地址</td>
			<td  width="25%" class="center">静态链接地址</td>
			<td  width="5%" class="center">排序</td>
			<td  width="5%" class="center">编辑</td>
			<td  width="5%" class="center">删除</td>
			<td  width="10%" class="center">隐藏导航</td>
		</tr>
	</table>
	<ul id="list">
		<if condition="$list neq NULL">
			<volist name="list" id="vo">
				<li style="list-style:none;">
					<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
						<tr align="center" class="smalltxt">
							<td width="25%" class="altbg2">
								<php>
									for($i=1;$i<$vo['count'];$i++){
										echo '┣━&nbsp;';
									}
								</php>
								{YICMS:$vo.name}
							</td>
							<td width="25%" class="altbg1 center">{YICMS:$vo.url|msubstr=###,0,25}</td>
							<td width="25%" class="altbg2 center">{YICMS:$vo.title|msubstr=###,0,25}</td>
							<td width="5%" class="altbg1 center">{YICMS:$vo.taxis}</td>
							<td width="5%" class="altbg2 center"><a href="{YICMS::U('Nav/edit?id='.$vo['id'])}" style="background:url(../Public/Images/admin/edit.png) no-repeat center center;padding:0px 20px;">&nbsp;</a></td>
							<td width="5%" class="altbg1 center"><a href="{YICMS::U('Nav/del?id='.$vo['id'])}" onclick="return confirm('提示：您确定要删除该导航吗？不可恢复！')" style="background:url(../Public/Images/admin/remove.png) no-repeat center center;padding:0px 20px;">&nbsp;</a></td>
							<td width="10%" class="altbg2 center">
								<if condition="$vo.state eq 0">
									<a href="{YICMS::U('Nav/stop?id='.$vo['id'].'&state=1')}" onclick="return confirm('提示：您确定要隐藏该导航吗?即网站前台不显示!')" style="color:red">点击隐藏</a>
								<else />
									<a href="{YICMS::U('Nav/stop?id='.$vo['id'].'&state=0')}" onclick="return confirm('提示：您确定要显示该导航吗?即网站前台显示!')" style="color:red">点击显示</a>
								</if>
							</td>
						</tr>
					</table>
				</li>
			</volist>
		<else />
			<li>
				<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
					<tr align="center" class="smalltxt">
						<td class="altbg1" style="text-align:center;font-weight:bold;color:#E01558;padding:10px 0px;">暂时没有导航!请点击上面的添加按钮添加!^_^</td>
					</tr>
				</table>
			</li>
		</if>	
	</ul>
<br/>
<include file="Public:footer" />